
package com.beacon.service.impl;

import com.beacon.dao.FinancialMapper;
import com.beacon.model.Financial;
import com.beacon.service.FinancialService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 编写人：魏乾聪
 * 编写时间：2019/05/22
 * 类模块描述：
 */
@Service
public class FinancialServiceImpl implements FinancialService {
    @Autowired
    private FinancialMapper financialMapper;

    @Override
    public Financial selectByPrimaryKey(Integer fid){
        return financialMapper.selectByPrimaryKey(fid);
    }

    @Override
    public List<Financial> getIsBegin(){
        System.out.println("执行资金类型SQL语句");
        return financialMapper.getIsBegin();
    }

    @Override
    //执行角色类型SQL语句
    public List<Financial> getAll(){
        return financialMapper.getAll();
    }
}